
package openadmin.dao.annotations.field;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * <desc> Used to see an attribute dependence from other attributes. This annotation can be used
 *   to raise an on-change event based on the independent attributes
 *   
 *   dependentAttributes: 	are the attributes from a class attribute; for instance if a town class 
 *   						of type Town has a class attribute province of type Province then we can say:
 *     							dependentAttributes={"town.province.id"}
 *     							independentAttributes={"province.id"}
 *   independentAttributes: are the attributes that may raise an on-change event and my cause the field to change   
 * @author edu
 *
 */
@Target(value=ElementType.FIELD)
@Retention(value=RetentionPolicy.RUNTIME)

public @interface DependsOn {
	public String[] dependentAttributes=null;
	public String[] indenpendentAttributes=null;
}
